home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / InsideBa1994 / InsideBasic-94 / IB 94 / Speech Mgr / SPEECH2.GLBL < prev    next >
Text File  |  1993-05-22  |  3KB  |  95 lines

  1.  
  2. ' FILE: SPEECH.GLBL
  3. '______________________________________________
  4. ' Speech Manager Globals  Part 1 & 2  
  5. ' ©1993 Ariel Publishing by Raoul Watson
  6. '______________________________________________
  7.  
  8. ' error results equates
  9. _synthOpenFailed     = -241
  10. _voiceNotFound       = -244
  11. _invalidComponentID  = -3000
  12.  
  13. ' gender equates
  14. _kNeuter             = 0
  15. _kMale               = 1
  16. _kFemale             = 2
  17.  
  18. ' SpeakBuffer equates
  19. _kSpeakImmediate     = 0
  20. _kNoEndingProsody    = 1
  21. _kNoSpeechInterrupt  = 2
  22. _kPreflightThenPause = 4
  23.  
  24. ' Pause and StopSpeechAt equates
  25. _kImmediate          = 0
  26. _kEndOfWord          = 1
  27. _kEndOfSentence      = 2
  28.  
  29. ' GetSpeechInfo & SetSpeechInfo selectors
  30.     
  31. _soStatus                        = _"stat"
  32. _soErrors                        = _"erro"
  33. _soInputMode                     = _"inpt"
  34. _soCharacterMode              = _"char"
  35. _soNumberMode              = _"nmbr"
  36. _soRate                             = _"rate"
  37. _soPitchBase                     = _"pbas"
  38. _soPitchMod                      = _"pmod"
  39. _soVolume                        = _"volm"
  40. _soSynthType                     = _"vers"
  41. _soRecentSync                 = _"sync"
  42. _soPhonemeSymbols          = _"phsy"
  43.  
  44. _soCurrentVoice               = _"cvox"
  45. _soCommandDelimiter  = _"dlim"
  46. _soReset                            = _"rset"
  47. _soCurrentA5                     = _"myA5"
  48. _soRefCon                        = _"refc"
  49. _soTextDoneCallBack  = _"tdcb"
  50. _soSpeechDoneCallBack= _"sdcb"
  51. _soSyncCallBack               = _"sycb"
  52. _soErrorCallBack              = _"ercb"
  53. _soPhonemeCallBack         = _"phcb"
  54. _soWordCallBack               = _"wdcb"
  55. _soSynthExtension          = _"xtnd"
  56.  
  57. ' voice channel, pitch, rate, # of voices
  58. DIM chan&,rate&,pitch&,numVoices
  59.  
  60. 'The VoiceSpec record
  61. DIM VoiceSpec;0
  62. DIM creator&,id&
  63.  
  64. ' VoiceDescription record
  65. DIM VoiceDescription;0
  66. DIM length&                                         'size of structure
  67. DIM creator1&,id1&                                  'creator and ID
  68. DIM version&                                        'version
  69. DIM  63 voiceName$                                  'voice name
  70. DIM 255 comment$                                    'additional comments
  71. DIM gender,age,script,language,region
  72. DIM reserved&,R2&,R3&,R4&                           'reserved
  73. ' length of VoiceSpec record. Need to be calculated
  74. ' in the Main program
  75. DIM infolength&
  76.  
  77. ' For Set & GetSpeechInfo
  78.  
  79. ' for _"stat" call or first "long" for
  80. ' _"inpt",_"char",_"nmbr",_"rate",_"pbas",_"pmod",_"volm"
  81. DIM speechInfo&
  82. DIM SpeechStatusInfo;0
  83. DIM outputBusy;0
  84. DIM outputPaused,inputBytesLeft&,phonemeCode
  85.  
  86. ' for _"erro" call
  87. DIM SpeechErrorInfo;0
  88. DIM count,oldest,oldPos&,newest,newPos&
  89.  
  90. ' for _"vers" call
  91. DIM SpeechVersionInfo;0
  92. DIM synthType&,synthSubType&,synthManufacturer&
  93. DIM synthFlags&,synthVersion&
  94.  
  95.